<template>
    <div class="table">
        <div class="container">
            <div class="handle-box">
                <el-form ref="form" label-width="100px">
                    <h1>预览</h1>
                </el-form>
            </div>
        </div>
    </div>
</template>
<script>
    export default {
        data() {
            return {
                that: this,
                tableHeight: window.innerHeight - 335,
                url_page: '',
                tableCols: [],
                tableData: [],
                form: {},
                dics: {},
            }
        },
        mounted() {
            this.form = JSON.parse(localStorage.getItem("codePreview"));
            this.getPages();
        },
        methods: {
            // 获取数据
            getPages() {
                this.$post(this.url_page, this.form).then(res => {
                    if (res.data) {
                        this.tableData = res.data;
                    }
                })
            },
            //右上角关闭事件
            handleDialogClose() {
                this.close();
            },
            //关闭窗口方法
            close() {
                this.refresh();
            },
        }
    }
</script>

<style scoped>
    @import "../../../../assets/css/common.css";
</style>

